#include "RotationByTimeShader.h"
#include "GLFW/glfw3.h"
#include "glm/ext.hpp"
#include "glm/ext/matrix_transform.hpp"
#include "glm/glm.hpp"

mat4 RotationByTimeShader::createModelMatrix()
{
    mat4 model = MovingLocationShader::createModelMatrix();


    auto angle = (float)glfwGetTime() * glm::radians(50.0f);


    return rotate(model, angle, glm::vec3(0.5f, 1.0f, 0.0f));
}